/**
 * mobx 总仓库
 */
import { observable, action } from 'mobx-miniprogram';
const mutations = {
  // 返回上一级
  back: () => {
    wx.navigateBack({
      delta: 1
    })
  }
}
/**
 * 把所有小仓库收集起来
 */
// 首页
import Index from './save/index.js'
import signIn from './save/signIn.js';
import cart from './cart/index.js';
import search from './search/index.js';
import goods from './goods/index.js';
/**
 * 把数据全部暴露出去
 */

export const store = observable({
  ...mutations,
  ...Index,
  ...goods,
  ...signIn,
  ...cart,
  ...search
})